package com.ss.android.account.v2.view;

import android.content.Context;
import android.support.v4.app.FragmentActivity;
import android.view.MotionEvent;
import android.view.View;
import android.view.inputmethod.InputMethodManager;

import com.ss.android.article.browser.R;

final class p implements View.OnTouchListener {
    private final h a;

    p(h arg1) {
        this.a = arg1;

    }

    public final boolean onTouch(View arg6, MotionEvent arg7) {
        if (arg7.getAction() == 0) {
            if (arg6.getId() == R.id.hh) {
                this.a.l = 0;
            } else if (arg6.getId() == R.id.hl) {
                this.a.l = 1;
            }

            FragmentActivity v0 = this.a.getActivity();
            try {
                ((InputMethodManager) ((Context) v0).getSystemService(Context.INPUT_METHOD_SERVICE)).toggleSoftInput(2, 2);
            } catch (Exception v0_1) {
            }

            this.a.m.sendEmptyMessageDelayed(1000, 50);
            this.a.c.setFocusableInTouchMode(false);
            this.a.d.setFocusableInTouchMode(false);
        }

        return false;
    }
}

